import {
	createRouter,
	createWebHashHistory
} from 'vue-router'
// import Home from '../views/Home.vue'
const routes = [{
		path: '/navigation',
		name: 'Navigation',
		component: () => import("@/views/Navigation"),
		children: [{
				path: '/homepage',
				name: 'Homepage',
				component: () => import('@/views/Homepage'),
			},
			{
				path: '/cart',
				name: 'Cart',
				component: () => import('@/views/Cart'),
				children: [{
					path: '/shoppingcart',
					name: 'ShoppingCart',
					component: () => import('@/views/ShoppingCart'),
				}]
			},
			{
				path: '/shopDishesList',
				name: 'ShopDishesList',
				component: () => import('@/views/ShopDishesList'),
			},
			{
				path: '/dishesDetails',
				name: 'DishesDetails',
				component: () => import('@/views/DishesDetails')
			}, {
				path: '/writingEvaluation',
				name: 'WritingEvaluation',
				component: () => import('@/views/WritingEvaluation')
			}, {
				path: '/evaluationList',
				name: 'EvaluationList',
				component: () => import('@/views/EvaluationList')
			},
			{
				path: '/myAssetsList',
				name: 'MyAssetsList',
				component: () => import('@/views/MyAssetsList')
			}
		]
	},
	{
		path: '/test',
		name: 'test',
		component: () => import('../views/test.vue')
	},
	// {
	//     path: '/test2',
	//     name: 'test2',
	//     component: () => import( '../views/test2.vue')
	// },
	{
		path: '/login',
		name: 'Login',
		component: () => import('../views/Login.vue')
	},
	{
		path: '/shoppingcart',
		name: 'ShoppingCart',
		component: () => import('@/views/ShoppingCart'),
	},
	{
		path: '/waimai',
		name: 'WaiMai',
		component: () => import('../views/WaiMai.vue'),
		children: [{
				path: '/waimaiindex',
				name: 'WaiMaiIndex',
				component: () => import('@/views/WaiMaiIndex'),
			},
			{
				path: '/order',
				name: 'Order',
				component: () => import('@/views/Order'),
			}
		]
	},
	{
		path: '/verify',
		name: 'Verify',
		component: () => import('@/views/Verify'),
	}

]

const router = createRouter({
	history: createWebHashHistory(),
	routes
})

export default router
